@import "mixins/mixins";
@import "common/var";

@include b(avatar) {
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    color: $--avatar-font-color;
    background: $--avatar-background-color;
    width: $--avatar-size;
    height: $--avatar-size;
    line-height: $--avatar-size;
    font-size: $--avatar-text-font-size;

    > img {
        display: block;
        height: 100%;
        vertical-align: middle;
    }

    @include m(circle) {
        border-radius: 50%;
    }

    @include m(square) {
        border-radius: $--avatar-border-radius;
    }

    @include m(icon) {
        font-size: $--avatar-icon-font-size;
    }

    @include m(lg) {
        width: $--avatar-lg-size;
        height: $--avatar-lg-size;
        line-height: $--avatar-lg-size;
    }

    @include m(sm) {
        width: $--avatar-sm-size;
        height: $--avatar-sm-size;
        line-height: $--avatar-sm-size;
    }
}
